<aside id="sidebar" class="col-md-4">
    <div id="recent-post">
        <h3 class="widget-title">Recent articles</h3>
        <ul>
            <?php foreach($sidebar as $data_sidebar): ?>
                <li>
                    <i style="background-color: <?php echo $data_sidebar['category_color'] ?>" class="fa fa-<?php echo $data_sidebar['category_icon']?>"></i>
                    <img class="RecentPost-thumbnail" src="<?php echo base_url() ?>Images/Post_Thumb/<?php echo $data_sidebar['thumbnail'] ?>" width="100%" height="160px"/>
                    <h4 class="RecentPost-title">
                        <a href="<?php echo site_url("Home/post/$data_sidebar[id_post]") ?>" title="Post by <?php echo $data_sidebar['fullname_user'] ?>">
                            <?php echo $data_sidebar['post_title'] ?>
                        </a>
                    </h4>         
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
</aside>